package Activity2;

public class Sam_Test {
    public static void main(String[] args) {
        Mango p1=Mango.NORTH;
        Mango p2=Mango.SOUTH;
        Mango p3=Mango.EAST;
        Mango p4=Mango.WEST;
        Mango p5=Mango.NORTHEAST;
        Mango p6=Mango.NORTHWEST;
        Mango p7=Mango.SOUTHEAST;
        Mango p8=Mango.SOUTHWEST;

        for(Mango p:Mango.values()){
            System.out.println(p);
        }

        System.out.println("Degree Details");
        System.out.println("NORTH :"+p1.getDegree());
        System.out.println("SOUTH :"+p2.getDegree());
        System.out.println("EAST :"+p3.getDegree());
        System.out.println("WEST :"+p4.getDegree());
        System.out.println("NORTHEAST :"+p5.getDegree());
        System.out.println("NORTHWEST :"+p6.getDegree());
        System.out.println("SOUTHEAST :"+p7.getDegree());
        System.out.println("SOUTHWEST :"+p8.getDegree());

        System.out.println("Using for-each loop");
        for(Mango M:Mango.values()){
            System.out.println(M+"::"+M.getDegree());
        }
    }
}
